package TestSystemClient;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.UIManager;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

@SuppressWarnings("serial")
public class ClientAbout extends JFrame {

	private JPanel contentPane;
	private JPanel panel;
	private JPanel panel_1;
	private JLabel lblNewLabel;
	private JLabel lblDevelop;
	private JLabel lblLeQuangPhu;
	private JLabel lblVuTheManh;
	private JLabel lblBuiltOn;
	private JLabel lblDatabaseHas;
	private JLabel lblGoodLuck;
	private JButton btnOk;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ClientAbout frame = new ClientAbout();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ClientAbout() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 670, 396);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		panel = new JPanel();
		panel.setFont(new Font("Segoe Print", Font.BOLD, 15));
		panel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Multiple Choice Test System", TitledBorder.CENTER, TitledBorder.TOP, null, null));
		panel.setBounds(10, 11, 634, 336);
		contentPane.add(panel);
		panel.setLayout(new BorderLayout(0, 0));
		
		panel_1 = new JPanel();
		panel.add(panel_1, BorderLayout.CENTER);
		panel_1.setLayout(null);
		
		lblNewLabel = new JLabel("- This system belongs to project Network programming.");
		lblNewLabel.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblNewLabel.setBounds(51, 32, 550, 27);
		panel_1.add(lblNewLabel);
		
		lblDevelop = new JLabel("- Developed by :");
		lblDevelop.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblDevelop.setBounds(51, 63, 152, 27);
		panel_1.add(lblDevelop);
		
		lblLeQuangPhu = new JLabel("Le Quang Phu");
		lblLeQuangPhu.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblLeQuangPhu.setBounds(242, 66, 117, 20);
		panel_1.add(lblLeQuangPhu);
		
		lblVuTheManh = new JLabel("Vu The Manh");
		lblVuTheManh.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblVuTheManh.setBounds(242, 97, 117, 20);
		panel_1.add(lblVuTheManh);
		
		lblBuiltOn = new JLabel("- Built on Java Language with PgAdmin.");
		lblBuiltOn.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblBuiltOn.setBounds(51, 128, 550, 27);
		panel_1.add(lblBuiltOn);
		
		lblDatabaseHas = new JLabel("- Database has more than 1000 questions in many different field.");
		lblDatabaseHas.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblDatabaseHas.setBounds(51, 166, 550, 27);
		panel_1.add(lblDatabaseHas);
		
		lblGoodLuck = new JLabel("- Good luck have fun.");
		lblGoodLuck.setFont(new Font("Segoe Print", Font.BOLD, 15));
		lblGoodLuck.setBounds(51, 204, 550, 27);
		panel_1.add(lblGoodLuck);
		
		btnOk = new JButton("Ok");
		btnOk.setFont(new Font("Segoe Print", Font.BOLD, 15));
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				ClientAbout.this.dispose();
			}
		});
		btnOk.setBounds(270, 260, 89, 42);
		panel_1.add(btnOk);
	}
}
